<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
	<head>
		<title><?php echo $title_for_layout; ?></title>
		<?php echo $html->charset('UTF-8') ?>
		<link rel="icon" href="<?php echo $this->webroot.'favicon.ico'; ?>" type="image/x-icon" />
		<link rel="shortcut icon" href="<?php echo $this->webroot.'favicon.ico' ?>" type="image/x-icon" />
		
		<?php echo $html->css('admin'); ?>
		<?php echo $html->css('page'); ?>
		<?php echo $html->css('form'); ?>
		
		<?php if(isset($javascript)): ?>
			<?php echo $javascript->link('tiny_mce/tiny_mce'); ?>
			<?php echo $javascript->link('scriptaculous/prototype'); ?>
			<?php echo $javascript->link('scriptaculous/scriptaculous.js?load=effects,dragdrop'); ?>
			<?php echo $javascript->link('scriptaculous/controls'); ?>
		<?php endif; ?>
		
	</head>
	<body>
		<div id="page">
				<div id="header">
					<h1><?php echo $title_for_layout; ?></h1>
				</div>

				<div id="menu-top">
					<?php echo $html->link($html->image('admin/main-admin.png', array('alt' => 'admin home')), '/admin',array(),false,false); ?>
					<?php echo $html->link($html->image('admin/list-posts.png', array('alt' => 'list pages')), '/admin/pages',array(),false,false); ?>
					<?php echo $html->link($html->image('admin/list-users.png', array('alt' => 'list users')), '/admin/users',array(),false,false); ?>
					<?php echo $html->link($html->image('admin/list-cats.png', array('alt' => 'list categories')), '/admin/categories',array(),false,false); ?>
					<?php echo $html->link($html->image('admin/list-comments.png', array('alt'=>'List comments')), '/admin/comments', array(), false, false); ?>
					<?php echo $html->link('Import data', '/admin/importdata'); ?>
					<?php echo $html->link('Upload File', '/admin/files'); ?>
					<?php echo $html->link('Logout', '/admin/logout', null, 'Are you sure to logout?'); ?>
					<?php echo $html->link('Back to website', '/'); ?>
				</div>

				<div id="container">
					<?php if($session->check('Message.flash')) $session->flash(); ?>
					<?php echo $content_for_layout;	?>
				</div>
				
				<div id="footer">
				</div>
			
		</div>
	</body>
</html>
